package com.chexiehui.jc.mvp.mine;

import com.chexiehui.jc.Constants;
import com.chexiehui.jc.base.BaseModel;
import com.chexiehui.jc.base.BaseView;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * @Description 浏览历史
 * @Auth SongJun
 * @Date 2019/11/20 10:05
 **/
public interface BrowseHistoryCovenant {

    interface View extends BaseView {

        void onDoDeleteSuccess(BaseModel<Object> successResult);

        void onDoDeleteFailure(BaseModel<Object> failureResult);

    }

    interface Stores {
        @FormUrlEncoded
        @POST(Constants.URL_EMPTY_RECORD)
        Observable<BaseModel<String>> onDoDelete(
                @Field("type") int type);
    }

    interface Presenter {
        void onDoDelete(int type);
    }

}